#include <stdio.h>




class Callback
{
public:
    Callback() {}public:
    virtual void operator() (int num) = 0;
};


void getNum(int num)
{
    printf("get a num %d\n", num);
}


int main()
{
    Callback* pFunc = (Callback*)getNum;

    getNum(888);

    typedef void (*FunctionPointer)(int);

    FunctionPointer func2 = getNum;

   // (*pFunc)(24);
    func2(245);


    return 0;
}
